package com.cdn.auth.component;

/**
 * 蔡定努
 * 2024/06/13 22:31
 */
public interface IAuth {

    /**
     * @param permission
     * @return boolean
     */
    boolean hasAuth(String permission);

    /**
     * @param permissions
     * @return boolean
     */
    boolean hasAnyAuth(String... permissions);

    /**
     * @param permissions
     * @return boolean
     */
    boolean hasAllAuth(String... permissions);

    /**
     * @param role
     * @return boolean
     */
    boolean hasRole(String role);

    /**
     * @param roles
     * @return boolean
     */
    boolean hasAnyRole(String... roles);


}
